package com.ruoyi.business.controller;

import com.ruoyi.system.domain.GiteeAddress;
import com.ruoyi.system.service.GiteeAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/project")
public class projectController {
    private String prefix = "business/project";

    @Autowired
    GiteeAddressService giteeAddressService;
    /**
     * 项目卡片列表
     */
    @GetMapping("/cards")
    public String cards(ModelMap mmap)
    {
        //TODO 需要查询条件，查询已上线的代码
        mmap.put("list", giteeAddressService.findList(new GiteeAddress()));
        return prefix + "/cards";
    }
}
